package service.credit;

import java.util.List;

import vo.CreditCheckBean;

import exception.Exceptions;

import model.credit.Creditapplypersonal;
import model.creditcheck.Applystate;

public interface CreditApplyPersonalService {
	/*保存一条信息*/
	public Creditapplypersonal save(Creditapplypersonal creditApplyPersonal) throws Exceptions;
	
	/*得到全部的数据*/
	public List<Creditapplypersonal> getAllMyList();
	
	/*根据申请Id得到一条记录*/
	public Creditapplypersonal getOneById(Integer id);
	
	/*得到所有调查记录*/
	public List<?> getAllSurveyList(String state) throws Exceptions;
	
	/*得到所有调查的记录数据*/
	public int getNumberAllSurveyList(String state) throws Exceptions;
	
	/*得到在所有的审查记录*/
	public List<?> getAllExamineList(String state) throws Exceptions;
	
	/*得到所有审查的记录数据*/
	public int getNumberAllExamineList(String state) throws Exceptions;
	
	/*得到所有的审批记录*/
	public List<?> getAllApprovalList(String state) throws Exceptions;
	
	/*得到所有审批的记录数据*/
	public int getNumberAllApprovalList(String state) throws Exceptions;
	
	/*得到所有的最终审批的记录*/
	public List<?> getAllFinalApprovalList(String state) throws Exceptions;
	
	/*得到所有终审的记录数据*/
	public int getNumberAllFinalApprovalList(String state) throws Exceptions;
	
	/*得到所有的受理的记录*/
	public List<?> getAllAcceptionList(String state) throws Exceptions;
	
	/*得到所有授理的记录数据*/
	public int getNumberAllAcceptionList(String state) throws Exceptions;
	
	/*按照id查询数据*/
	public List<?> getAllMyListById(Integer id);
	
	/*按照申请时间查询数据*/
	public List<?> getAllMyListByApplyDate(String applyDate);
	
	/*按照id和类型得到审批的记录*/
	public List<Applystate> getOneApplystate(Integer id, String type);
	
	/*判断该申请单号是否已经使用*/
	public int getCount(Integer applyid);
	
	/*得到一条信息*/
	public CreditCheckBean getOneBean(Integer applyid) throws Exceptions;
	
	/*重置记录*/
	public void resetApply(Integer applyid) throws Exceptions;
	
	/*得到复审列表*/
	public List<?> getAllExamineAdviceList(String type) throws Exceptions;
	
	/*得到所有复审的记录数据*/
	public int getNumberAllExamineAdviceList(String state) throws Exceptions;
	
	public List<?> getAllAcceptionListByApplyIdAndState(Integer applyid, String state) throws Exceptions;
	
	public void deleteById(Integer applyid) throws Exceptions;
	
}
